package com.kmxd.ams.client.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * 字典项
 *
 * @author ZuoLG
 * @since 2022-10-10
 */
@Schema(description = "字典项对象")
@Data
public class SysDictItemEditDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  /** 主键ID */
  @Schema(description = "主键ID")
  private Long id;

  /** 字典ID */
  @Schema(description = "字典ID")
  private Long dictId;

  /** 字典项编码 */
  @Schema(description = "字典项编码")
  @NotBlank(message = "字典项编码不能为空")
  @Size(max = 100, message = "字典项编码长度不能超过100个字符")
  private String dictItemCode;

  /** 字典项名称 */
  @Schema(description = "字典项名称")
  @NotBlank(message = "字典项名称不能为空")
  @Size(max = 100, message = "字典项名称长度不能超过100个字符")
  private String dictItemName;

  /** 扩展字段1 */
  @Schema(description = "扩展字段1")
  private String ext1;

  /** 扩展字段2 */
  @Schema(description = "扩展字段2")
  private String ext2;

  /** 扩展字段3 */
  @Schema(description = "扩展字段3")
  private String ext3;

  /** 扩展字段4 */
  @Schema(description = "扩展字段4")
  private String ext4;

  /** 扩展字段5 */
  @Schema(description = "扩展字段5")
  private String ext5;

  /** 年度为版本 */
  @Schema(description = "年度为版本")
  private Integer version;

  /** 多版本code */
  @Schema(description = "多版本code")
  @Size(max = 100, message = "多版本code长度不能超过100个字符")
  private String setCode;

  /** 排序 */
  @Schema(description = "排序")
  private Integer sort;

  /** 备注 */
  @Schema(description = "备注")
  @Size(max = 100, message = "备注长度不能超过100个字符")
  private String remarks;

  /** 状态 0正常；1停用 */
  @NotBlank(message = "状态不能为空")
  private String status;
}
